package com.bw.zg3park2212.task

import android.widget.LinearLayout
import android.widget.TextView
import com.bw.base.entity.DataEntity
import com.bw.zg3park2212.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class DataAdpter:BaseQuickAdapter<DataEntity,BaseViewHolder>(R.layout.item_datatime) {
    override fun convert(helper: BaseViewHolder, item: DataEntity) {
        val week = helper.getView<TextView>(R.id.data_week)
        val day = helper.getView<TextView>(R.id.data_day)
        val ll = helper.getView<LinearLayout>(R.id.data_ll)
        week.setText(item.week)
        day.setText(item.day)
        if (item.isCheck){
            ll.setBackgroundResource(R.drawable.shape_status_blue)
        }
    }
}